package ${packageSpace}.${moduleName}.${domain};

import ${packageSpace}.core.domain.SuperEntity;

import com.yulinlin.jdbc.model.anno.JoinField;
import com.yulinlin.jdbc.model.anno.JoinTable;
import com.yulinlin.jdbc.model.anno.JoinWhere;
import com.yulinlin.jdbc.serialize.ListString;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;



@Data
@ApiModel("${tableComment}")
@JoinTable("${tableName}")
public class ${prefix}${className}${suffix} extends SuperEntity<${prefix}${className}${suffix}>  {


<#list columnList as column>

        <#if column.getFieldName() == 'id'>

        <#elseif column.getFieldName() == 'crtTime'>

        <#elseif column.getFieldName() == 'crtTime'>

        <#else >
        @NotEmpty(message = "必填")
        @ApiModelProperty("${column.columnComment}")
        @JoinWhere
        @JoinField
        private ${column.getFieldType()} ${column.getFieldName()};
        </#if>




</#list>


}
